from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


class BaiDuPage:

    def __init__(self, driver):
        self.driver = driver

    # 搜索功能
    def Search(self, value, loc):
        self.driver.find_element(loc).clear()
        self.driver.find_element(loc).send_keys(value)
        self.driver.find_element(loc).click()

    # 点击链接

    pass
